﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<style type="text/css">
<!--
	body{
		background-color:#FFFFFF;
		scrollbar-3dlight-color:#38688c;
		scrollbar-arrow-color: #38688c;
		scrollbar-base-color: #38688c;		/* 基调颜色 */
		scrollbar-darkshadow-color: #38688c;
		scrollbar-face-color: #CFDFF4;
		scrollbar-highlight-color: #38688c;
		scrollbar-shadow-color: #38688c;
	}
	a:link {
		text-decoration:none;
		color:#333333;
	}
	a:visited{
		color:#000000;
		text-decoration:none;
	}
	a:hover{
		color: #FF6600;
		font-weight:bold;
		text-decoration:underline;
	}
	
-->
</style>
<script language="javascript" type="text/javascript">
// --- 获取ClassName
document.getElementsByClassName = function(cl) {
   var retnode = [];
   var myclass = new RegExp('\\b'+cl+'\\b');
   var elem = this.getElementsByTagName('*');
   for (var j = 0; j < elem.length; j++) {
    var classes = elem[j].className;
    if (myclass.test(classes)) retnode.push(elem[j]);
   }
   return retnode;
}

// --- 隐藏所有
function HideAll() {
   var items = document.getElementsByClassName("optiton");
   for (var j=0; j<items.length; j++) {
    items[j].style.display = "none";
   }
}

// --- 设置cookie
function setCookie(sName,sValue,expireHours) {
   var cookieString = sName + "=" + escape(sValue);
   //;判断是否设置过期时间
   if (expireHours>0) {
    var date = new Date();
    date.setTime(date.getTime + expireHours * 3600 * 1000);
    cookieString = cookieString + "; expire=" + date.toGMTString();
   }
   document.cookie = cookieString;
}

//--- 获取cookie
function getCookie(sName) {
   var aCookie = document.cookie.split("; ");
   for (var j=0; j < aCookie.length; j++){
   var aCrumb = aCookie[j].split("=");
   if (escape(sName) == aCrumb[0])
    return unescape(aCrumb[1]);
   }
   return null;
}

window.onload = function() {
   var show_item = "opt_1"; 
   
   if (getCookie("show_item") != null) {
    show_item= "opt_" + getCookie("show_item");
   }
   document.getElementById(show_item).style.display = "block";
   var items = document.getElementsByClassName("title");
   for (var j=0; j<items.length; j++) {
    items[j].onclick = function() {
     var o = document.getElementById("opt_" + this.name);
     
     if (o.style.display != "block") {
      HideAll();
      o.style.display = "block";
      setCookie("show_item",this.name);
     }
     else {
      o.style.display = "none";
     }
     
    }
     
    var mymenu = document.getElementById("mymenu").value;
    var key = (j+1)+",";
    if(mymenu.indexOf(key)>-1){ 
    	document.getElementById(j+1).style.display="";
    }
    
   }
}
</script>
<link href="${ctx}/css/safeai/frame.css" rel="stylesheet" type="text/css" />
</head>
<body>
<input type="hidden" id="mymenu" value="<%=((com.safeai.entity.Operator)request.getSession().getAttribute("USERINFO")).getMenuId()%>">
<bean:define id="omid" name="USERINFO" property="omenuId"></bean:define>
<div class="left">
<div class="left-1 "><ul><li>系统管理功能菜单</li></ul></div>



<ul id="menu">
<li id="1" style="display:none"><a href="javascript:void(0)" class="title" name="1"><div style="padding-top:6px; padding-left:15px">商城管理</div></a>
   <ul id="opt_1" class="optiton" style="display:none">
   	<li><a href="${ctx}/pages/safeai/jsp/product/catalogManage.jsp" target="mainFrame"> 类别管理</a></li>
   	<li><a href="${ctx}/brand/brandMessage.do?method=brandList" target="mainFrame">品牌管理</a></li>
   	<li><a href="${ctx}/product/productMessage.do?method=ProductList" target="mainFrame">商品管理</a></li>
   	<li><a href="${ctx}/product/productMessage.do?method=stopProduct" target="mainFrame">商品停产库</a></li>
  	<li><a href="${ctx}/shop/shopManage.do?method=showShop" target="mainFrame">门店管理</a></li>
    <li><a href="${ctx}/product/productMessage.do?method=ProductList&product.status=0&forward=product.status" target="mainFrame">即将上市</a></li>
    <li><a href="${ctx}/product/productMessage.do?method=special&product.specialType=1" target="mainFrame">新品到货</a></li>
    <li><a href="${ctx}/product/productMessage.do?method=special&product.specialType=2" target="mainFrame">每周特价</a></li>
    <li><a href="${ctx}/product/productMessage.do?method=special&product.specialType=3" target="mainFrame">推荐商品</a></li>
    <li><a href="${ctx}/product/productMessage.do?method=special&product.specialType=4" target="mainFrame">热卖商品</a></li>
    <li><a href="${ctx}/product/salesList.do?method=query" target="mainFrame">设定排行</a></li>
    <li><a href="${ctx }/advertising/clickNum.do?method=getAdvertisingClickNumlist" target="mainFrame">广告位点击量</a></li>
    <li><a href="${ctx }/product/clickNum.do?method=getCatalogClickNumlist" target="mainFrame">分类点击量</a></li>
    <li><a href="${ctx }/product/clickNum.do?method=getProductClickNumlist" target="mainFrame">商品点击量</a></li>
   </ul>
</li>
<li id="11" style="display:none"><a href="javascript:void(0)" class="title" name="11"><div style="padding-top:6px; padding-left:15px">商品预订子系统</div></a>
   <ul id="opt_11" class="optiton" style="display:none">
   	<li><a href="${ctx}/productSon.do?method=orderson" target="mainFrame">预订信息登记</a></li>
   	<li><a href="${ctx}/productSon.do?method=showMsg" target="mainFrame">预订信息查看</a></li>
   	<li><a href="${ctx}/productSon.do?method=productmanager" target="mainFrame">预订活动管理</a></li>
   </ul>
</li>
<li id="12" style="display:none"><a href="javascript:void(0)" class="title" name="12"><div style="padding-top:6px; padding-left:15px">优惠卷</div></a>
   <ul id="opt_12" class="optiton" style="display:none">
   	<li><a href="${ctx}/ecoupon.do?method=query" target="mainFrame">查询优惠券</a></li>
   	<li><a href="${ctx}/ecoupon.do?method=toAdd" target="mainFrame">新增优惠券</a></li>
   	<li><a href="${ctx}/ecoupon.do?method=toquery" target="mainFrame">修改优惠券</a></li>
   	<li><a href="${ctx}/ecoupon.do?method=toqueryprovide" target="mainFrame">发放优惠券</a></li>
   </ul>
</li>
<li id="2" style="display:none"><a href="javascript:void(0)" class="title" name="2"><div style="padding-top:6px; padding-left:15px">订单管理</div></a>
   <ul id="opt_2" class="optiton" style="display:none">
     <li><a href="${ctx}/addBillManage.do?method=select" target="mainFrame">订单查询</a></li>
     <li><a href="${ctx}/addBillManage.do?method=in" target="mainFrame">录入订单</a></li>
     <%if(((String)omid).indexOf("5") != -1){ %>
     	<li><a href="${ctx}/addBillManage.do?method=count" target="mainFrame">产品部处理</a></li>
     <%} %>
   </ul>
</li>
<li id="3" style="display:none"><a href="javascript:void(0)" class="title" name="3"><div style="padding-top:6px; padding-left:15px">前台管理</div></a>
   <ul id="opt_3" class="optiton" style="display:none">
    <li><a href="${ctx}/others/activityManage.do?method=list" target="mainFrame">活动管理</a></li>
    <li><a href="${ctx}/others/evaluateManage.do?method=listToday" target="mainFrame">评论管理</a></li>
    <li><a href="${ctx}/others/messageManage.do?method=list" target="mainFrame">建议中心管理</a></li>
    <li><a href="${ctx}/pages/safeai/jsp/others/stage/message.jsp" target="mainFrame">商品咨询管理</a></li>
    <!-- <li><a href="${ctx}/others/announcementManage.do?method=list" target="mainFrame">公告管理</a></li>
    <li><a href="${ctx}/others/lackManage.do?method=list" target="mainFrame">缺货登记管理</a></li>
    <li><a href="${ctx}/others/linkManage.do?method=list" target="mainFrame">友情连接管理</a></li> 
     -->
   </ul>
</li>
<li id="4" style="display:none"><a href="javascript:void(0)" class="title" name="4"><div style="padding-top:6px; padding-left:15px">广告管理</div></a>
	<ul id="opt_4" class="optiton" style="display:none">
    	<li><a href="${ctx}/others/advertisingManage.do?method=list" target="mainFrame">广告管理 </a></li>
    	<li><a href="${ctx}/others/firstAdvertisingManage.do?method=firstAdvertisingMessage" target="mainFrame">动态广告位</a></li>
   </ul>
</li>
<li id="4" style="display:none"><a href="javascript:void(0)" class="title" name="4"><div style="padding-top:6px; padding-left:15px">系统管理</div></a>
	<ul id="opt_4" class="optiton" style="display:none">
    	<!--<li><a href="${ctx}/others/adManage.do?method=fileList" target="mainFrame">文件管理 </a></li>-->
   </ul>
</li>
 
<li id="5" style="display:none"><a href="javascript:void(0)" class="title" name="5"><div style="padding-top:6px; padding-left:15px">咨询管理</div></a>
	<ul id="opt_5" class="optiton" style="display:none">
    	<li><a href="${ctx}/others/myMessageManage.do?method=act" target="mainFrame">咨询活动管理</a></li>
   </ul>
</li> 
<li id="6" style="display:none"><a href="javascript:void(0)" class="title" name="6"><div style="padding-top:6px; padding-left:15px">新增功能</div></a>
   <ul id="opt_6" class="optiton" style="display:none">
    <li><a href="${ctx}/others/voteManage.do?method=list" target="mainFrame">投票管理</a></li>
    <li><a href="${ctx}/others/usermsgManage.do?method=indict" target="mainFrame">投诉管理</a></li>
    <li><a href="${ctx}/others/usermsgManage.do?method=advice" target="mainFrame">建议管理</a></li>
    <li><a href="${ctx}/others/usermsgManage.do?method=quest" target="mainFrame">提问管理</a></li>
    <li><a href="${ctx}/others/usermsgManage.do?method=offer" target="mainFrame">举报管理</a></li>
   </ul>
</li>
<li id="7" style="display:none"><a href="javascript:void(0)" class="title" name="7"><div style="padding-top:6px; padding-left:15px">会员管理</div></a>
   <ul id="opt_7" class="optiton" style="display:none">
    <li><a href="${ctx}/pw_members/pw_membersManage.do?method=list" target="mainFrame">会员一览</a></li>
    <li><a href="${ctx}/pw_members/pw_membersManage.do?method=query" target="mainFrame">会员查询</a></li>
	 <%if(((String)omid).indexOf("6") != -1){ %>
     	<li><a href="${ctx}/pages/safeai/jsp/sendGroup/sendMail.jsp" target="mainFrame">定时邮件</a></li>
     <%} %>
     <%if(((String)omid).indexOf("7") != -1){ %>
     	<li><a href="${ctx}/pages/safeai/jsp/sendGroup/sendSms.jsp" target="mainFrame">定时短信</a></li>  
     <%} %>
     <%if(((String)omid).indexOf("8") != -1){ %>
     	<li><a href="${ctx}/pages/safeai/jsp/sendGroup/sendSmsOnly.jsp" target="mainFrame">发送短信</a></li>  
     <%} %>
     <%if(((String)omid).indexOf("9") != -1){ %>
     	<li><a href="${ctx}/job.do?method=showJob" target="mainFrame">查看定时任务</a></li>  
     <%} %>
     <li><a href="${ctx}/product/productnotifyMessage.do?method=query" target="mainFrame">到货通知</a></li>
     <li><a href="${ctx}/price/listpricenotifyMessage.do?method=query" target="mainFrame">降价通知</a></li> 
   </ul>
</li>
<li id="8" style="display:none"><a href="javascript:void(0)" class="title" name="8"><div style="padding-top:6px; padding-left:15px">Erp管理</div></a>
   <ul id="opt_8" class="optiton" style="display:none">
	<li><a href="${ctx}/pages/safeai/jsp/erp/erp.jsp" target="mainFrame">Erp导入</a></li> 
   </ul>
</li>
<li  id="9" style="display:none"><a href="javascript:void(0)" class="title" name="9"><div style="padding-top:6px; padding-left:15px">员工&部门管理</div></a>
   <ul id="opt_9" class="optiton" style="display:none">
	<li><a href="${ctx}/operator.do?method=queryOperator" target="mainFrame">员工管理</a></li>
    <li><a href="${ctx}/operator.do?method=queryRole" target="mainFrame">权限管理</a></li>
   </ul>
</li>
<li id="10" style="display:none"><a href="javascript:void(0)" class="title" name="10"><div style="padding-top:6px; padding-left:15px">安全退出</div></a>
   <ul id="opt_10" class="optiton" style="display:none">
	<li><a href="${ctx}/pages/safeai/login.do?method=loginOut" target="_top">安全退出</a></li>
   </ul>
</li> 
</ul>

</div>
 </body>
</html>

